-- GENERATED SPELL FOR [Chulo the Mad] --


function spell0_28496(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28496', 12304, 1)
end

function spell1_28496(pUnit, Event) --@Wildly Flailing,n/a--
pUnit:FullCastSpellOnTarget(50188,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28496', 5000, 1)
end

function Sorts_28496(pUnit, Event)
local choix_sorts_28496 = math.random(0, 1)
if choix_sorts_28496 == 0 then
pUnit:RegisterEvent('spell0_28496', 1, 1)
end
if choix_sorts_28496 == 1 then
pUnit:RegisterEvent('spell1_28496', 1, 1)
end
end

function mob28496_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28496', math.random(1500, 3000), 1)
end

function mob28496_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28496_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28496_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28496, 1, 'mob28496_Action')
RegisterUnitEvent(28496, 2, 'mob28496_Leave')
RegisterUnitEvent(28496, 3, 'mob28496_Kill')
RegisterUnitEvent(28496, 4, 'mob28496_Die')
